﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication1.BankService;
namespace WebApplication1
{
    public partial class Order : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Service1 BankService = new Service1();
            bool flag = BankService.CheckAccount(txtbanknumber.Text, txtpinnumber.Text);
            if (flag)
            {
                Response.Redirect("Submit.aspx");
            }
            else {
                lblMsg.Text = "Bank account is not valid";
                lblMsg.Visible = true;
            }
        }
    }
}